package cn.tedu.admin.mall.service;
import cn.tedu.admin.mall.pojo.bo.CategoryBO;
import cn.tedu.admin.mall.pojo.param.CategoryAddParam;
import cn.tedu.admin.mall.pojo.param.CategoryUpdateParam;
import cn.tedu.admin.mall.pojo.vo.CategoryVO;
import cn.tedu.tmall.common.vo.PageData;
import org.springframework.transaction.annotation.Transactional;

public interface CategoryService {


    PageData<CategoryBO> listCategory(Integer pageNum, Integer pageSize);
  @Transactional
    void addCategory(CategoryAddParam categoryAddParam);
   //根据id查类别
    CategoryBO selectCategoryById(Long id);

    void delete(Long id);


    void updateInfoById(Long id, CategoryUpdateParam categoryUpdateParam);
}
